package cn.itcast.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    /**
     * 私有属性：id，用户id，房间id，订单状态，入住人数，客人需求，押金，押金状态，
     * 入住日期，退房日期，预计退房日期，更新日期，创建日期
     */
    private Long id;
    private Long userId;
    private Long roomId;
    private Integer status;
    private Integer checkInNumber;
    private String nores;
    private Integer cashPledge;
    private Integer cashPledgeStatus;    //押金状态
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkInDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkOutDate;  //退房日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expectedCheckOutDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
